package com.sikaryofficial.backend.domain.dto.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

/**
 * @author : qinjinyuan
 * @desc : 举报列表查询对象
 * @date : 2023/11/08 10:11
 */
@Getter
@Setter
@ApiModel(value = "举报列表查询对象1", description = "举报列表查询对象1")
public class ReportListReq extends PageDomain {

    @ApiModelProperty(value = "当前登录人ID")
    @Min(value = 0, message = "当前登录人ID不能小于0")
    private Long userId;
    /**
     * 举报状态：1-accepting受理中,2-accepted已受理
     */
    @ApiModelProperty(value = "举报状态：1-accepting受理中,2-accepted已受理")
    @Min(value = 1, message = "当前举报状态不能小于1")
    @Max(value = 2, message = "当前举报状态不能大于2")
    private Integer reportStatus;

    /** 业务类型：1-店铺,2-评论,3-评论回复 4-仿品举报*/
    @ApiModelProperty(value = "业务类型：(1-店铺,2-评论,3-评论回复,4-仿品举报),多个英文逗号分隔",example = "1,2,4")
    private String businessTypes;

    @ApiModelProperty(value = "国家")
    private String country;
    @ApiModelProperty(value = "区域")
    private String area;
    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "举报人名字")
    private String reportPersonName;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "举报编号")
    private String reportNum;

}
